package com.zy.web.demo.duoxiancheng.demo22;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/21 15:29
 */
public class MyTest22 {

    public static void main(String[] args) {

        Integer num = 0;
        String lock = new String();
        ShengChan shengChan = new ShengChan(lock,num);
        ThreadA22 A = new ThreadA22(shengChan);
        A.setName("A");
        A.start();
        ThreadB22 B = new ThreadB22(shengChan);
        B.setName("B");
        B.start();
        ThreadB22 C = new ThreadB22(shengChan);
        C.setName("C");
        C.start();
        ThreadB22 D = new ThreadB22(shengChan);
        D.setName("D");
        D.start();
        ThreadA22 E = new ThreadA22(shengChan);
        E.setName("E");
        E.start();
    }

}
